<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>地址</title>
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1/mogujie/Static/Home/css/address.css"/>
		<script src="http://127.0.0.1/mogujie/Static/js/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script language="javascript" src="http://127.0.0.1/mogujie/Static/Home/js/address.js"></script>
		<script language="javascript">
				var s=["s1","s2","s3"];
				var opt0 = ["请选择省","请选择市","请选择县（区）"];
				function setup(){
					 for(i=0;i<s.length-1;i++)
					  document.getElementById(s[i]).onclick=new Function("change("+(i+1)+")");
					 change(0);
					}
				window.onload=function(){
						setup()	
				
					};
			$(function(){
				
				$('.dj').live('click',function(){
					var dj = $('#s1').val() + '省,' + $('#s2').val() + '市,' + $('#s3').val();
					alert(dj);	
				})
				
				
				
				
				var k=0;
				$('.newadd').click(function(){
					if(k==0){
						$('.dl_all').css({display:'block'});
						k=1;
					}else if(k==1){
						$('.dl_all').css({display:'none'})
						k=0;
					}
					
				})
				
			})
		</script>
		
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<link rel="stylesheet" href="http://127.0.0.1/mogujie/Static/Home/css/index.css" />
<link rel="stylesheet" type="text/css" href="http://127.0.0.1/mogujie/Static/Home/css/animate.css"/>
<script type="text/javascript" src="http://127.0.0.1/mogujie/Static/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="http://127.0.0.1/mogujie/Static/mgjs/index.js"></script>
</head>

<body>
<!-- 首页首屏开始**************************** -->


<!-- 顶部红色区域 -->
<div id="top">
	<!-- 顶级 -->
	<div id="pic">
	<!-- 右侧 -->
		<ul>
			    <?php if($hd['session']['username'] && $hd['session']['uid']){ ?>
				<li class='userinfo'>
					欢迎回来<a href="<?php echo U('Search/index');?>" class='uname' style="margin-right:10px ;"><?php echo $hd['session']['username'];?></a>
				</li>
				<li class="sp">|</li>
				<li><a href="<?php echo U('Login/out');?>">退出</a></li>  
			<?php }else{ ?>
				<li><a href="<?php echo U('Register/index');?>">注册</a></li>
				<li><a href="<?php echo U('Login/index');?>">登陆</a></li>
			<?php } ?>
			<li><span>|</span><a href="">QQ登陆</a></li>
			<li><a href="">微信登陆</a></li>
			<li><a href="">微博登陆</a></li>
			<li><span>|</span><a href="">手机蘑菇街</a></li>
			<li><span>|</span><a href="">帮助中心</a></li>
			
		</ul>
		<!-- 中部 -->
		<div class="logo">
			<div class="logo-left">
				<a href="<?php echo U('Index/index');?>"><img src="http://127.0.0.1/mogujie/Static/Home/images/wjmsj.png" alt="" /></a>
			</div>
			<!-- 搜索区域 -->
			<div class="logo-middle">
				<form action="">
					<input type="text" class="l" value=" 清爽秋季，运动起来" />
					<input type="submit" class="y" value="" />
				</form>
				<!-- 购物车 -->
				<div class="car">
					<div class="xia-1">
						<a href="<?php echo U('Cart/index');?>">购物车
							<span>
								    <?php if($_SESSION['cart']){ ?>
								<?php echo $hd['session']['cart']['total_rows'];?>
								<?php }else{ ?>0<?php } ?>
							</span>件
						</a>
					</div>
					<div class="xia-2">
						    <?php if($_SESSION['cart']){ ?>
						<div>购物车中有<span style="color: #FF339B;">&nbsp;<?php echo $hd['session']['cart']['total_rows'];?>&nbsp;</span>件商品！
							<br />
							总价:￥<?php echo $hd['session']['cart']['total'];?>
						</div>
						<?php }else{ ?><div>购物车中还没有商品！</div><?php } ?>
					</div>	
				</div>
				<!-- 我的订单 -->
				<div class="count"><a href="<?php echo U('Order/index');?>">我的订单</a></div>
			</div>
		</div>
	</div>
</div>
<!-- 顶部红色区域结束 -->

<!-- 导航条开始 -->
<div id="nav">
	
	<ul>
		
		<li><a href="<?php echo U('Index/index');?>" class="a">首页</a></li>
		<?php foreach ($cateData as $k=>$v){?>
			<li><a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?></a></li>
		<?php }?>
	</ul>
	<a href=""></a><img src="http://127.0.0.1/mogujie/Static/Home/images/ds3.jpg" alt="" />
</div>
<!-- 导航条结束 -->
<div id="red"></div>
<!--个人中心开始-->
<div id="myself">
	<!--左侧-->
	<div class="my_left">
		<div class="div_1">
			<div><img src="http://127.0.0.1/mogujie/<?php echo $info['face'];?>" style="width: 100px;height: 100px;" /></div>
			<div class="zhezhao"></div>
			<p><?php echo $hd['session']['username'];?></p>
			<span></span>
		</div>
		<div class="div_2">
			<a href="<?php echo U('Search/index');?>">我的订单</a>
			<ul>
				<li><a href="">全部订单</a></li>
				<li><a href="">待付款</a></li>
				<li><a href="">待收货</a></li>
				<li><a href="">待评价</a></li>
				<li><a href="">退货退款</a></li>
			</ul>
		</div>
		<div class="div_3">
			<a href="<?php echo U('Search/addRess');?>">地址管理</a>
		</div>
		<div class="div_4">
			<a href="<?php echo U('Search/personal');?>">基本信息</a>
			<!--<ul>
				<li><a href="">基本信息</a></li>
				<li><a href="">修改头像</a></li>
			</ul>-->
		</div>
		<div class="div_4">
			<a href="<?php echo U('Search/alter');?>">修改头像</a>
			<!--<ul>
				<li><a href="">基本信息</a></li>
				<li><a href="">修改头像</a></li>
			</ul>-->
		</div>
	</div>
	<!--右侧-->
	<div class="my_right">
		<p>地址管理</p>
		<?php foreach ($addRess as $k=>$v){?>
			<div class="addres">
				<ul>
					<li style="width: 30px;"><?php echo $v['name'];?></li>
					<li style="width: 200px;"><?php echo $v['address'];?></li>
					<li style="width: 30px;"><?php echo $v['postcode'];?></li>
					<li style="width: 30px; text-indent:-20px;"><?php echo $v['phone'];?></li>
					<li style="width: 65px;"> 
						<!--<a href="<?php echo U('Search/editeaddResss',array('adid'=>$v['adid']));?>" class="edit">编辑</a>-->
						<a href="<?php echo U('Search/addressDel',array('adid'=>$v['adid']));?>">删除</a> 
					</li>
				</ul>
			</div>
		<?php }?>
		
		
		<form action="<?php echo U('Search/addResss');?>" method="post">
		<div class="p_b1">
			<a href="javascript:;"><span class="newadd"></span></a>
			<div class="dl_all">
				<dl class="dl_1">
					<dt>省&nbsp;:</dt>
					<dd>
						<select id="s1" name="province">
							<option value="" selected="selected">省份</option>
							
						</select>
						<label for="">市&nbsp;:</label>
						<select id="s2" name="city">
							<option value="" selected="selected">地级市</option>
							
						</select>
						<label for="">区&nbsp;:</label>
						<select id="s3" name="county">
							<option value="" selected="selected">市、县级市、县</option>
						
						</select>
					</dd>
				</dl>
				<dl class="dl_2">
					<dt>邮政编码&nbsp;:</dt>
					<dd><input type="text" name="postcode"/></dd>
				</dl>
				<dl class="dl_3">
					<dt>街道地址&nbsp;:</dt>
					<dd><textarea name="content" rows="" cols=""></textarea></dd>
					<p>请填写街道地址，最少5个字，最多不能超过100个字</p>
				</dl>
				<dl class="dl_4">
					<dt>收货人姓名&nbsp;:</dt>
					<dd><input type="" name="name" id="" value="" /></dd>
				</dl>
				<dl class="dl_5">
					<dt>手机&nbsp;:</dt>
					<dd><input type="" name="phone" id="" value="" /></dd>
				</dl>
				<div>
					<input type="submit" name="" class="a_left" value="" style="border:none;float: left; cursor: pointer;"/>
					<!--<a href="" class="a_left"></a>-->
					<a href="" class="a_right"></a>
				</div>
			</div>
		</div>
		</from>
		<!--<p>退货地址管理</p>
		<div class="p_b2"><span></span></div>-->
		<!--<div class="p_b3">
			<span>退货说明&nbsp;:</span>
			<div>
				<textarea name="" rows="" cols="" placeholder="退货说明中可对退货的相关事宜进行"></textarea>
				<a href="">保存</a>
			</div>
			
			
		</div>-->
	</div>
</div>
<!--个人中心结束-->

<!-- 底部文字 -->
<div id="b_font">
	<div class="bb_font">
		<div class="b_font_l">
			<a href="" class="bone"></a>
			<p>营业执照注册号：<a href="">330106000129004</a></p>
			<p>增值电信业务经营许可证：<a href="">浙B2-20110349</a></p>
			<p>ICP备案号：浙ICP备10044327号-3</p>
			<p>©2015 Mogujie.com 杭州卷瓜网络有限公司</p>		
		</div>
		<div class="b_font_r">
			<dl>
				<dt>公司</dt>
				<dd><a href="">关于我们</a></dd>
				<dd><a href="">招聘信息</a></dd>
				<dd><a href="">联系我们</a></dd>
			</dl>  

			<dl>
				<dt>消费者</dt>
				<dd><a href="">帮助中心</a></dd>
				<dd><a href="">意见反馈</a></dd>
				<dd><a href="">手机版下载</a></dd>
			</dl>
			<dl>
				<dt>商家</dt>
				<dd><a href="">免费开店</a></dd>
				<dd><a href="">商家入驻</a></dd>
				<dd><a href="">管理后台</a></dd>
			</dl>
			<dl class="llast">
				<dt>权威认证</dt>
				<dd>
					<a href="" class="llast-1"></a>
					<a href="" class="llast-2"></a>
					<a href="" class="llast-3"></a>
				</dd>
			</dl>
		</div>
	</div>
</div>




<!-- 底部文字结束 -->
</body>
</html>
